#pragma once

#include "header_ctrl_ex.h"
// list_ctrl_ex

class list_ctrl_ex : public CListCtrl
{
	DECLARE_DYNAMIC(list_ctrl_ex)

public:
	list_ctrl_ex();
	virtual ~list_ctrl_ex();

protected:
	DECLARE_MESSAGE_MAP()
	virtual void PreSubclassWindow();
	virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
public:
	int InsertColumn(int nCol, LPCTSTR lpszColumnHeading,
		int nFormat = LVCFMT_LEFT, int nWidth = -1, int nSubItem = -1);
	void set_parent_wnd(HWND hwnd){ this->parent_wnd_ = hwnd;}
private:
	HWND parent_wnd_;
	header_ctrl_ex header_ctrl_;
	//afx_msg void OnPaint();
protected:
	virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
};


